package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.Enroll;
import org.apache.ibatis.annotations.Select;

////创建数据库接口的地方
public interface EnrollMapper extends BaseMapper<Enroll> {

    @Select("select * from `enroll` where newsid = #{id} order by id desc")
    Enroll getByNewsId(Integer id);

}
